package pjkanri.service;

import java.util.List;

import pjkanri.dao.DAOException;
import pjkanri.dao.IssureDAO;
import pjkanri.entity.Issure;

public class IssueService {

	/**
	 * @param issue
	 * @throws DAOException
	 */
	public static void insert(Issure issue) throws DAOException {
		IssureDAO issuedao = new IssureDAO();
		issuedao.insert(issue);
	}

	/**
	 * @return
	 * @throws DAOException
	 */
	public List<Issure> findIssureByProjectID(Integer projectId)
			throws DAOException {
		IssureDAO issuredao = new IssureDAO();
		return issuredao.findIssureByProjectID(projectId);
	}
}
